package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.Program;

import java.util.Date;
import java.util.List;

public interface ProgramManager {

    List<Program> getPrograms(DataSourceKey key);

    Program getProgramById(DataSourceKey key, Long id);

    List<Program> getProgramByCode(DataSourceKey key, String code);

    void saveProgram(DataSourceKey key, Program program);

    void saveProgramList(DataSourceKey key, List<Program> list);

    List<Program> getNewEngineSeriesByUpdateTime(DataSourceKey key, Date updateTime);

    Program getProgramById(DataSourceKey key, long id);

    void saveOrUpdateList(DataSourceKey key, List<Program> list);

    void saveOrUpdate(DataSourceKey key, Program p);
}
